/**
 * Created by Tomkk on 2016/5/13.
 */
angular.module('app.routes',[])
    .config(function($stateProvider,$urlRouterProvider){
        $urlRouterProvider.otherwise('home');
        $stateProvider
            .state('home',{
                url:"/home",
                templateUrl:"templates/home.html",
                controller:"HomeCtrl"
            })
            .state('startClub',{
                url:"/startClub",
                templateUrl:"templates/startClub.html",
                controller:"StartClubCtrl"
            })
            .state('manageUsers',{
                url:"/manageUsers",
                templateUrl:"templates/manageUsers.html",
                controller:"ManageUsersCtrl"
            })
            .state('editUser',{
                url:"/editUser",
                templateUrl:"templates/editUser.html",
                controller:"EditUserCtrl"
            })
            .state('addNews',{
                url:'/addNews',
                templateUrl:"templates/addNews.html",
                controller:"AddNewsCtrl"
            })
            .state('showNews',{
                url:'/showNews',
                templateUrl:"templates/showNews.html",
                controller:"ShowNewsCtrl"
            })
            .state('editNews',{
                url:'/editNews',
                templateUrl:"templates/editNews.html",
                controller:"EditNewsCtrl"
            })
            .state('addAchievement',{
                url:'/addAchievement',
                templateUrl:"templates/addAchievement.html",
                controller:"AddAchievementCtrl"
            })
            .state('showAchievement',{
                url:'/showAchievement',
                templateUrl:"templates/showAchievement.html",
                controller:"ShowAchievementCtrl"
            })
            .state('editAchievement',{
                url:'/editAchievement',
                templateUrl:'templates/editAchievement.html',
                controller:'EditAchievementCtrl'
            })
            .state('showClubMembers',{
                url:'/showClubMembers',
                templateUrl:'templates/showClubMembers.html',
                controller:'ShowClubMembersCtrl'
            })
    });